const http = uni.$u.http

export function addressGetList() {
	return http.get('/address/getList')
} // 获取用户所有地址列表

export function addressGetDetails(data) {
	return http.post('/address/getDetails', data)
} // 查询地址详情

export function addressAdd(data) {
	return http.post('/address/add', data)
} // 增加用户地址（传id可以修改）

export function addressEdit(data) {
	return http.post('/address/edit', data)
} // 修改用户地址

export function addressDefaultAddress(data) {
	return http.post('/address/defaultAddress', data)
} // 设置用户默认地址

export function addressDelete(data) {
	return http.post('/address/delete', data)
} // 删除用户的收货地址
